<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>采购计划审核</title>
		<link rel="stylesheet" href="../../lib/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="../../lib/layui/css/layui.css" />
		<link rel="stylesheet" href="layui/css/layui.css" media="all">
		<link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css" media="all" />
	</head>

	<body>
		<form class="layui-form" id="forms">
			<div class="layui-form-item" hidden="hidden">
				<label class="layui-form-label">ID:</label>
				<div class="layui-input-inline" style="width: 350px;">
					<input type="text" id="purchasingplanId" name="purchasingplanId" required lay-verify="required" class="layui-input">
				</div>
			</div>

			<label class="layui-form-label"><span style="color: red;">*</span>
			审核状态选择</label>
			<div class="layui-input-inline">
				<select name="inspectorStatus" id="inspectorStatus">
					<option value="">请选择</option>
					<option value="0">待审核</option>
					<option value="1">通过</option>
					<option value="2">不通过</option>
				</select>
			</div>
<div class="layui-btn-container" style="text-align: center;">
				<input type="submit" class="layui-btn" lay-filter="userEditBtu" id="sub" value="确认" />
			</div>
			</div>

			
		</form>
	</body>
          <script src="../../layui/layui.js"></script>
		<script src="../../js/User.js" type="text/javascript" charset="utf-8"></script>
	<script>
		layui.use('form', function() {
			var form = layui.form;
			var $ = layui.jquery;

			$("#sub").click(function() {
				var data = $("#forms").serialize();
				var url = globalData.server + 'Pur/adminUpdateSta';
				$.post(url, data, function(data) {
					if(data.count > 0) {
						alert("nice");						
						var index = parent.layer.getFrameIndex(window.name);
						parent.layer.close(index);
					}
				}, "json");
				return false;
			});
			
		
		});
	</script>

</html>